#!/bin/bash
set -e
ulimit -n 1000000

DEPLOY_DIR={{ deploy_dir }}
cd "${DEPLOY_DIR}" || exit 1


exec > >(tee -i -a "{{ pushgateway_log_dir }}/{{ pushgateway_log_filename }}")
exec 2>&1

exec bin/pushgateway \
    --log.level="{{ pushgateway_log_level}}" \
    --web.listen-address=":{{ pushgateway_port }}" 

